﻿using Qiniu.Storage;
using qiniu_class.Storage;
using System;
using System.Windows.Forms;

namespace qiniu_class
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            FormUploaderEx mUp = new FormUploaderEx();
            mUp.UploadFile(@"D:\1.txt", "1.txt", "http://incool3d.cn/Weixin_Interface_User/qiniu/dicomCallBack", null);
        }

        private void button2_Click(object sender, EventArgs e)
        {
            DownloadManagerEx mD = new DownloadManagerEx();
            mD.CreatePublishUrl("1.txt");
        }

        private void button3_Click(object sender, EventArgs e)
        {
            ZipEx ziper = new ZipEx();
            ziper.InitZip("D:\\test.zip");
            string[] ary = System.IO.Directory.GetFiles(@"D:\CompressTest\");
            foreach (string s in ary)
            {
                ziper.AppendZipFile(s);
            }
            ziper.OutPut();

        }

    }
}
